001    package jgb;
002    
003    public abstract class InvalidParameterException extends Exception {
004        public InvalidParameterException() {
005        }
006    
007        public InvalidParameterException(String message) {
008            super(message);
009        }
010    
011        public final String getMessage() {
012            final StringBuffer out = new StringBuffer();
013            out.append(getParamMessage());
014            if (null != super.getMessage()) {
015                out.append(super.getMessage());
016            }
017    
018            return out.toString();
019        }
020    
021        protected abstract StringBuffer getParamMessage();
022    }